package org.ushio.nchu_22201402.Foen;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;
import org.ushio.common_module.entity.User;

import java.util.List;

@FeignClient(value ="nchu-22201408")
public interface Admin_UserFoen {
    @GetMapping(value = "/users/all")
    List<User> findAllUsers();

    @GetMapping(value = "/users/{phoneNumber}")
    public User getUserByPhoneNumber(@RequestParam("phoneNumber") String phoneNumber);
}
